/* SVN Info:
 * $HeadURL: http://jkad.googlecode.com/svn/trunk/JKad/src/jkad/structures/kademlia/KadTreeNode.java $
 * $LastChangedRevision: 24 $
 * $LastChangedBy: polaco $                             
 * $LastChangedDate: 2006-09-04 05:32:35 +0000 (Mon, 04 Sep 2006) $  
 */
package jkad.structures.kademlia;

import jkad.structures.tree.SimpleTreeNode;

public class KadTreeNode implements SimpleTreeNode<Bucket>
{
    private Bucket parent;

    public Bucket getParent()
    {
        return parent;
    }

    public boolean isRoot()
    {
        return (getParent() == null);
    }

    public void setParent(Bucket node)
    {
        this.parent = node;
    }
}